So I'm trying to create a search widget for an external app. I am 90% the way there but there is one slight hurdle and that's the order that the list is displayed.
def main(): global tab_search tab_search = TabWidget() tab_search.show() return tab_search
if __name__ == '__main__': app = QtGui.QApplication([]) main() app.exec_() </pre>
So at the moment if I search for the word 'dab' the words commendable and appendable will show up before dab but I would like dab to show up first. I'm very new to pyqt and I have found a couple of examples that apparently work in qt but they are written in C++ and I'm not very good at translating that into python code.
Any help would be super appreciated.
Thanks!
You must be logged in to post. Please login or register an account.